package cn.smbms.dao;

import cn.smbms.pojo.Bill;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Classname BillMapper
 * @Description TODO
 * @Date 2020-10-11 10:41
 * @Created by 26440
 */
public interface BillMapper extends BaseMapper<Bill> {
    @Select("select b.*,p.proName from smbms_bill b join smbms_provider p on b.providerId=p.id ${ew.customSqlSegment}")
/*    @Select("select u.*,r.roleName as userRoleName from smbms_user u join smbms_role r on u.userRole = r.id ${ew.customSqlSegment}")*/
    List<Bill> selectBill(@Param(Constants.WRAPPER)Wrapper<Bill> wrapper);
}
